package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MMarkRelationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MMarkRelationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMrtIdIsNull() {
            addCriterion("mrt_id is null");
            return (Criteria) this;
        }

        public Criteria andMrtIdIsNotNull() {
            addCriterion("mrt_id is not null");
            return (Criteria) this;
        }

        public Criteria andMrtIdEqualTo(Integer value) {
            addCriterion("mrt_id =", value, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdNotEqualTo(Integer value) {
            addCriterion("mrt_id <>", value, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdGreaterThan(Integer value) {
            addCriterion("mrt_id >", value, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mrt_id >=", value, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdLessThan(Integer value) {
            addCriterion("mrt_id <", value, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdLessThanOrEqualTo(Integer value) {
            addCriterion("mrt_id <=", value, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdIn(List<Integer> values) {
            addCriterion("mrt_id in", values, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdNotIn(List<Integer> values) {
            addCriterion("mrt_id not in", values, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdBetween(Integer value1, Integer value2) {
            addCriterion("mrt_id between", value1, value2, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mrt_id not between", value1, value2, "mrtId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdIsNull() {
            addCriterion("mrt_ipm_id is null");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdIsNotNull() {
            addCriterion("mrt_ipm_id is not null");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdEqualTo(Integer value) {
            addCriterion("mrt_ipm_id =", value, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdNotEqualTo(Integer value) {
            addCriterion("mrt_ipm_id <>", value, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdGreaterThan(Integer value) {
            addCriterion("mrt_ipm_id >", value, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mrt_ipm_id >=", value, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdLessThan(Integer value) {
            addCriterion("mrt_ipm_id <", value, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdLessThanOrEqualTo(Integer value) {
            addCriterion("mrt_ipm_id <=", value, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdIn(List<Integer> values) {
            addCriterion("mrt_ipm_id in", values, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdNotIn(List<Integer> values) {
            addCriterion("mrt_ipm_id not in", values, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdBetween(Integer value1, Integer value2) {
            addCriterion("mrt_ipm_id between", value1, value2, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtIpmIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mrt_ipm_id not between", value1, value2, "mrtIpmId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdIsNull() {
            addCriterion("mrt_pim_id is null");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdIsNotNull() {
            addCriterion("mrt_pim_id is not null");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdEqualTo(Integer value) {
            addCriterion("mrt_pim_id =", value, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdNotEqualTo(Integer value) {
            addCriterion("mrt_pim_id <>", value, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdGreaterThan(Integer value) {
            addCriterion("mrt_pim_id >", value, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mrt_pim_id >=", value, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdLessThan(Integer value) {
            addCriterion("mrt_pim_id <", value, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdLessThanOrEqualTo(Integer value) {
            addCriterion("mrt_pim_id <=", value, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdIn(List<Integer> values) {
            addCriterion("mrt_pim_id in", values, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdNotIn(List<Integer> values) {
            addCriterion("mrt_pim_id not in", values, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdBetween(Integer value1, Integer value2) {
            addCriterion("mrt_pim_id between", value1, value2, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtPimIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mrt_pim_id not between", value1, value2, "mrtPimId");
            return (Criteria) this;
        }

        public Criteria andMrtWeightIsNull() {
            addCriterion("mrt_weight is null");
            return (Criteria) this;
        }

        public Criteria andMrtWeightIsNotNull() {
            addCriterion("mrt_weight is not null");
            return (Criteria) this;
        }

        public Criteria andMrtWeightEqualTo(Double value) {
            addCriterion("mrt_weight =", value, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightNotEqualTo(Double value) {
            addCriterion("mrt_weight <>", value, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightGreaterThan(Double value) {
            addCriterion("mrt_weight >", value, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightGreaterThanOrEqualTo(Double value) {
            addCriterion("mrt_weight >=", value, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightLessThan(Double value) {
            addCriterion("mrt_weight <", value, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightLessThanOrEqualTo(Double value) {
            addCriterion("mrt_weight <=", value, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightIn(List<Double> values) {
            addCriterion("mrt_weight in", values, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightNotIn(List<Double> values) {
            addCriterion("mrt_weight not in", values, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightBetween(Double value1, Double value2) {
            addCriterion("mrt_weight between", value1, value2, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtWeightNotBetween(Double value1, Double value2) {
            addCriterion("mrt_weight not between", value1, value2, "mrtWeight");
            return (Criteria) this;
        }

        public Criteria andMrtStatusIsNull() {
            addCriterion("mrt_status is null");
            return (Criteria) this;
        }

        public Criteria andMrtStatusIsNotNull() {
            addCriterion("mrt_status is not null");
            return (Criteria) this;
        }

        public Criteria andMrtStatusEqualTo(Integer value) {
            addCriterion("mrt_status =", value, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusNotEqualTo(Integer value) {
            addCriterion("mrt_status <>", value, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusGreaterThan(Integer value) {
            addCriterion("mrt_status >", value, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("mrt_status >=", value, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusLessThan(Integer value) {
            addCriterion("mrt_status <", value, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusLessThanOrEqualTo(Integer value) {
            addCriterion("mrt_status <=", value, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusIn(List<Integer> values) {
            addCriterion("mrt_status in", values, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusNotIn(List<Integer> values) {
            addCriterion("mrt_status not in", values, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusBetween(Integer value1, Integer value2) {
            addCriterion("mrt_status between", value1, value2, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("mrt_status not between", value1, value2, "mrtStatus");
            return (Criteria) this;
        }

        public Criteria andMrtDateIsNull() {
            addCriterion("mrt_date is null");
            return (Criteria) this;
        }

        public Criteria andMrtDateIsNotNull() {
            addCriterion("mrt_date is not null");
            return (Criteria) this;
        }

        public Criteria andMrtDateEqualTo(Date value) {
            addCriterion("mrt_date =", value, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateNotEqualTo(Date value) {
            addCriterion("mrt_date <>", value, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateGreaterThan(Date value) {
            addCriterion("mrt_date >", value, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateGreaterThanOrEqualTo(Date value) {
            addCriterion("mrt_date >=", value, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateLessThan(Date value) {
            addCriterion("mrt_date <", value, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateLessThanOrEqualTo(Date value) {
            addCriterion("mrt_date <=", value, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateIn(List<Date> values) {
            addCriterion("mrt_date in", values, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateNotIn(List<Date> values) {
            addCriterion("mrt_date not in", values, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateBetween(Date value1, Date value2) {
            addCriterion("mrt_date between", value1, value2, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtDateNotBetween(Date value1, Date value2) {
            addCriterion("mrt_date not between", value1, value2, "mrtDate");
            return (Criteria) this;
        }

        public Criteria andMrtUserIsNull() {
            addCriterion("mrt_user is null");
            return (Criteria) this;
        }

        public Criteria andMrtUserIsNotNull() {
            addCriterion("mrt_user is not null");
            return (Criteria) this;
        }

        public Criteria andMrtUserEqualTo(String value) {
            addCriterion("mrt_user =", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserNotEqualTo(String value) {
            addCriterion("mrt_user <>", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserGreaterThan(String value) {
            addCriterion("mrt_user >", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserGreaterThanOrEqualTo(String value) {
            addCriterion("mrt_user >=", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserLessThan(String value) {
            addCriterion("mrt_user <", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserLessThanOrEqualTo(String value) {
            addCriterion("mrt_user <=", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserLike(String value) {
            addCriterion("mrt_user like", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserNotLike(String value) {
            addCriterion("mrt_user not like", value, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserIn(List<String> values) {
            addCriterion("mrt_user in", values, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserNotIn(List<String> values) {
            addCriterion("mrt_user not in", values, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserBetween(String value1, String value2) {
            addCriterion("mrt_user between", value1, value2, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtUserNotBetween(String value1, String value2) {
            addCriterion("mrt_user not between", value1, value2, "mrtUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateIsNull() {
            addCriterion("mrt_del_date is null");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateIsNotNull() {
            addCriterion("mrt_del_date is not null");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateEqualTo(Date value) {
            addCriterion("mrt_del_date =", value, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateNotEqualTo(Date value) {
            addCriterion("mrt_del_date <>", value, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateGreaterThan(Date value) {
            addCriterion("mrt_del_date >", value, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateGreaterThanOrEqualTo(Date value) {
            addCriterion("mrt_del_date >=", value, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateLessThan(Date value) {
            addCriterion("mrt_del_date <", value, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateLessThanOrEqualTo(Date value) {
            addCriterion("mrt_del_date <=", value, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateIn(List<Date> values) {
            addCriterion("mrt_del_date in", values, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateNotIn(List<Date> values) {
            addCriterion("mrt_del_date not in", values, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateBetween(Date value1, Date value2) {
            addCriterion("mrt_del_date between", value1, value2, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelDateNotBetween(Date value1, Date value2) {
            addCriterion("mrt_del_date not between", value1, value2, "mrtDelDate");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserIsNull() {
            addCriterion("mrt_del_user is null");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserIsNotNull() {
            addCriterion("mrt_del_user is not null");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserEqualTo(String value) {
            addCriterion("mrt_del_user =", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserNotEqualTo(String value) {
            addCriterion("mrt_del_user <>", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserGreaterThan(String value) {
            addCriterion("mrt_del_user >", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserGreaterThanOrEqualTo(String value) {
            addCriterion("mrt_del_user >=", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserLessThan(String value) {
            addCriterion("mrt_del_user <", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserLessThanOrEqualTo(String value) {
            addCriterion("mrt_del_user <=", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserLike(String value) {
            addCriterion("mrt_del_user like", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserNotLike(String value) {
            addCriterion("mrt_del_user not like", value, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserIn(List<String> values) {
            addCriterion("mrt_del_user in", values, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserNotIn(List<String> values) {
            addCriterion("mrt_del_user not in", values, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserBetween(String value1, String value2) {
            addCriterion("mrt_del_user between", value1, value2, "mrtDelUser");
            return (Criteria) this;
        }

        public Criteria andMrtDelUserNotBetween(String value1, String value2) {
            addCriterion("mrt_del_user not between", value1, value2, "mrtDelUser");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}